image: docker:24.0.5
services:
  - docker:24.0.5-dind


stages:
  - build
  - upload
  - deploy

build:
  tags:
      - lab8
  stage: build
  script:
    - docker build -t kursovaya:$CI_COMMIT_SHORT_SHA .

upload:
  tags:
      - lab8
  stage: upload
  script:
    - kind load docker-image kursovaya:${CI_COMMIT_SHORT_SHA}

deploy:
  tags:
      - lab8
  stage: deploy
  environment:
    name: production
  script:
    - kubectl get pods



